.ans {
    background-color: rgba(128, 128, 128, 0.599);
    width: 104.7%;
    box-sizing: border-box;
    max-height: 0;
    padding: 0 18px;
    opacity: 0;
    overflow:hidden;
    position: relative;
    left: 1%;
    top: -9px;
   

    transition:
        max-height 0.4s ease,
        padding 0.3s ease,
        opacity 0.25s ease;
}

.ans p{
    font-size: 18px;
}

.q-a {
   
    max-height: 40vh;
   padding: 18px;
    opacity: 1;
}

.a-img {
    transform: rotate(45deg);
    transition-timing-function: linear;
    transition-duration: .5s;
}